package si.ibloc.cms.home;

import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityHome;
import si.ibloc.cms.model.Role;

@Name("roleHome")
public class RoleHome extends EntityHome<Role> {

	public void setRoleId(Integer id) {
		setId(id);
	}

	public Integer getRoleId() {
		return (Integer) getId();
	}

	@Override
	protected Role createInstance() {
		return new Role();
	}

	public void wire() {
	}

	public boolean isWired() {
		return true;
	}

	public Role getDefinedInstance() {
		return isIdDefined() ? getInstance() : null;
	}

}
